<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>全国城市三级联动</title>
<style type="text/css">
body{ background:#EEEEEE;margin:0; padding:0; font-family:"微软雅黑", Arial, Helvetica, sans-serif; }
a{ color:#006600; text-decoration:none;}
a:hover{color:#990000;}
.top{ margin:5px auto; color:#990000; text-align:center;}
.info select{ border:1px #993300 solid; background:#FFFFFF;}
.info{ margin:5px; text-align:center;}
.info #show{ color:#3399FF; }
.bottom{ text-align:right; font-size:12px; color:#CCCCCC; width:1000px;}
</style>
</head>
<body>
<div class="top">
	
</div>
<div class="info">
	<div>
	<select id="s_province" name="s_province"></select>  
    <select id="s_city" name="s_city" ></select>  
    <select id="s_county" name="s_county"></select>
    </div><br/><br/>
    
    
    <div>
	<select id="s_province2" name="s_province2"></select>  
    <select id="s_city2" name="s_city2" ></select>  
    <select id="s_county2" name="s_county2"></select>
    </div>
    
</div>
<script src="area.js" type="text/javascript"></script>   
<script type="text/javascript">_init_area();</script>
<script type="text/javascript">_init_area2();</script> 
<script type="text/javascript">
var Gid  = document.getElementById ;
var showArea = function(){
	Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" + 	
	Gid('s_city').value + " - 县/区" + 
	Gid('s_county').value + "</h3>"
							}
Gid('s_county').setAttribute('onchange','showArea()');
</script>


<script type="text/javascript">
var Gid2  = document.getElementById ;
var showArea2 = function(){
	Gid2('show2').innerHTML = "<h3>省" + Gid2('s_province2').value + " - 市" + 	
	Gid2('s_city2').value + " - 县/区" + 
	Gid2('s_county2').value + "</h3>"
							}
Gid2('s_county2').setAttribute('onchange','showArea2()');
</script>
</body>
</html>

